package com.example.test.service;


import com.example.test.entity.Log;
import com.example.test.entity.Look;
import com.example.test.mapper.LogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogService {
     @Autowired
    private LogMapper logMapper;

    public List<Log> getAllLogs() {
        return  logMapper.getAllLogs();
    }
    public int createLog(Log log) {
        return logMapper.insertLog(log);
    }
}
